package com.test.fundible.fundible_05_process;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.test.fundible.R;

import java.util.List;


public class Proces_fundiblesInfoInputL_fundibleistAdapter extends BaseAdapter {

    private final Context context_fundible;

    private final List<String> items_fundible;

    public Proces_fundiblesInfoInputL_fundibleistAdapter(Context context, List<String> items){
        this.context_fundible = context;
        this.items_fundible = items;
    }

    @Override
    public int getCount() {
        return items_fundible.size();
    }

    @Override
    public String getItem(int position) {
        return items_fundible.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView==null) convertView = LayoutInflater.from(context_fundible).inflate(R.layout.item_fundible_info_input_list,parent,false);
        TextView textView = convertView.findViewById(R.id.iiil_tv_text);
        textView.setText(items_fundible.get(position));
        return convertView;
    }

}
